package com.hesicare.health.worker;

import com.hesicare.health.entity.SysBloodGlucose;
import com.hesicare.health.service.ISysBloodGlucoseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

/**
 * @author 55097
 */
@Component
public class DoBloodGlucose {

    @Autowired
    private ISysBloodGlucoseService sysBloodGlucoseService;

    /**
     * 查询所有未回传数据
     * */
    public List<SysBloodGlucose> getBloodGlucose() {
        return sysBloodGlucoseService.getBloodGlucose();
    }

    /**
     * 根据血糖id,修改OperateState状态
     * */
    public void updateBloodGlucose(Map<Long, Boolean> resultMap) {
        sysBloodGlucoseService.updateBloodGlucose(resultMap);
    }
}
